#ifndef GAMEOVER_H
#define GAMEOVER_H

#include "basewindow.h"
#include "textbutton.h"
#include "instructionscreen.h"
#include "settingsscreen.h"
#include "creditsscreen.h"
#include <QWidget>
#include <QImage>
#include <QPainter>
#include <QDebug>
#include <QFont>
#include <QFontDatabase>

namespace Ui {
    class GameOver;
}

class GameOver : public QWidget
{
    Q_OBJECT

public:
//    explicit GameOver(QWidget *parent = 0, QString newFilepath = "", bool highScore = false);
    explicit GameOver(QWidget *parent = 0, QString newFilepath = "", bool highScore = false, int speed = 0);
    ~GameOver();

    void paintEvent(QPaintEvent *event);

private:
    Ui::GameOver *ui;
    //QString filepath;
    QImage bg;
    QFont *buttonFont;
    TextButton *returnToMenu;

private slots:
    void on_returnToMenu_clicked();
};

#endif // GAMEOVER_H
